package de.hdu.tennis.model;


import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;

/**
 * model class Tennisplatz
 * @author Katharina Weber, Lilli Kardapolzew, Carolina Hirtreiter 
 */
@Entity
@Table(name = "tbl_tennisplatz")
public class Tennisplatz {
	
	/**
	 * primary key:
	 * <ul>
	 * <li>pk_tennisplatz in the database</li>
	 * <li>automatic generated value</li>
	 * </ul>
	 */
    @Id
    @GeneratedValue
	@Column(name = "pk_tennisplatz")
	private Integer id;
	private String zustand;
	private String name;
	private Boolean belegt = false; 
	@Temporal(javax.persistence.TemporalType.TIMESTAMP)
	private Date start; 
	
	// Getters and Setters 
	
	public Date getStart() {
		return start;
	}
	public void setStart(Date start) {
		this.start = start;
	}
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public String getZustand() {
		return zustand;
	}
	public void setZustand(String zustand) {
		this.zustand = zustand;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public Boolean isBelegt() {
		return (boolean) belegt;
	}
	public void setBelegt(Boolean belegt) {
		this.belegt = (Boolean) belegt;
	}
    
}
